							 
		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Figure A2 - Neighboring FoM (CIRI) histogram		 **
		 **															 **
		 **************************************************************

		 
		clear
		version 16.1
		set seed 1234

		** Change working directory
		cd "~"
	 
		use "ht_merged.dta"
		merge 1:1 ccode year using "ht_eba_ivs.dta"		
		eststo clear	 
		global IVs "gdp_ln pop_ln" 
		sort ccode year
		tsset ccode year
		* inteff does not allow for time series operators
		gen fsource= F.source 
		
		probit fsource fm W_fm_con12  interact_W_C_f12 gdp_ln pop_ln , robust cluster (ccode) 
		inteff fsource fm W_fm_con12  interact_W_C_f12 gdp_ln pop_ln  , savedata(probit_inteff, replace) savegraph1(inteff_figure, replace) savegraph2(inteff_figure2, replace)
			 
		graph combine inteff_figure.gph inteff_figure2.gph
